package com.colin.orderservice10001.feign;

import com.colin.common.response.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("product-service")
public interface ProductFeign {

    @PutMapping("/product/{productId}/{count}")
    R<Boolean> changeInventory(
            @PathVariable("productId") Integer productId,
            @PathVariable("count") Integer count);

}
